﻿@model PaginaWeb.Models.MiProducto

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_ClienteLayout.cshtml";
}

<h2>Detalles</h2>

<fieldset>
    <legend>@Model.nombre</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.modelo)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.modelo)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.descripcion)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.descripcion)
    </div>  
    <div class="display-label">
         @Html.DisplayNameFor(model => model.precio)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.precio)
    </div>

    <div class="display-label">
         Foto
    </div>
    <div class="display-field">
        <img src="@Url.Content("~/Content/Imagenes2/" + Model.id + ".jpg")" height="150" width="150"/>
    </div>
<h2>Marca: @Model.marca.nombre</h2>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.marca.descripcion)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.marca.descripcion)
    </div>
    <div class="display-field">
        <img src="@Html.DisplayFor(model => model.marca.foto)" height="100" width="100" />
    </div>

</fieldset>
<p>
  
    @Html.ActionLink("Back to List", "Index")
</p>
